﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

namespace Weibo4SharpWeb.Helpers
{
    public class EmotionHelper
    {
        public static string ParseEmotion(string content)
        {
            foreach (var em in Platform.Emotions)
            {
                content = content.Replace(em.Phrase, string.Format("<img src=\"{0}\" />", em.Url));
            }

            return content;
        }
    }
}